﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shoppinghere</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>M?ng xã h?i mua bán siêu vi?t | ShoppingHere.com</title>
		<link rel="stylesheet" href="../css/reset.css" type="text/css" />
		<link rel="stylesheet" href="../css/common.css" type="text/css" />
		<link rel="stylesheet" href="../css/home.css" type="text/css" />
        <link rel="stylesheet" href="../css/seller.css"
		<script src="../scripts/jquery-1.5.2.min.js"></script>
		<script src="../scripts/common.js"></script>

        <script type="text/javascript" language="javascript">
			var xmlhttp;
			function createXMLHTTPRequest()
			{
				if(window.XMLHttpRequest)
				{
					return new XMLHttpRequest();
				}
				else if(window.ActiveXObject)
				{
					return new ActiveXObject("microsoft.XMLHTTP");
				}
				return null;
			}
			
			function datMua()
			{				
				xmlhttp=createXMLHTTPRequest();
				xmlhttp.onreadystatechange=showResult;
				var serverUrl="../BUS/xlThemDonHangBUS.php?DatMua=yes";
				xmlhttp.open("get",serverUrl,true);
				xmlhttp.send(null);
			}
			function showResult()
			{
				if(xmlhttp.readyState==4 && xmlhttp.status==200)
				{
					var result=xmlhttp.responseText;
					alert(result);
					//var div=document.getElementById("showBinhLuan");
					//div.innerHTML=result;
				}
			}
			
		</script>
	</head>
	<body>
		<div id="page">
			<?php

				


				include_once("../webconfig.php");
				
				include_once("../DAO/DataHelper.php");
				include_once("../DAO/TaiKhoan_DAO.php");
				include_once("../DAO/DanhMucSanPham_DAO.php");
				include_once("../DAO/SanPham_DAO.php");
				include_once("../UserControl/header.php");
			//$_SESSION['IsLogin']=true;
			//	$_SESSION['UserName']='lvhung';
				
			?>
			<div id="content">
				<?php
					require("../UserControl/DanhMucLoaiSanPham.php");
				?>
				<div id="seller-details" class="block layout-2col-col2">
				<div class="title"><h4>Chi tiết giỏ hàng</h4></div>
				<div class="content">
                   <input type="button" onclick="datMua();" value="Đặt mua" />					
				</div>
				<div id="showBinhLuan">
				</div>
			</div>
				
			</div>
			<?php
				require("../UserControl/footer.php");
			?>
		</div>
	</body>
</html>